package com.zhihuiweijian.demo.dao;

import com.zhihuiweijian.demo.model.User;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    int insert(User record);

    User selectByUserName(String username);

    List<User> selectAll();

    void deleteByPrimaryKey(Long id);

    void updateByPrimaryKey(User user);

    User selectByPrimaryKey(Long id);

    User findByPrimaryKey(Long id);
}